//
//  MCHongBaoDetailModel.h
//  XDYL
//
//  Created by MC on 2018/3/28.
//  Copyright © 2018年 TLYL01. All rights reserved.
//

#import <Foundation/Foundation.h>

/*
 * /api/v1/redenvelopes/grabmoneydetail
 抢红包详情
 */

@interface MCDetailListModel : NSObject
//UserName (string, optional): 用户名 ,
//GrabMoney (number, optional): 金额 ,
//GrabTime (string, optional): 抢红包时间 ,
//Best (integer, optional): 最佳1最佳 0都不是
@property(nonatomic,strong) NSString * UserName;//": "string",
@property(nonatomic,strong) NSString * GrabMoney;//": 0,
@property(nonatomic,strong) NSString * GrabTime;//": "2018-03-28T06:12:16.503Z",
@property(nonatomic,strong) NSString * Best;//": 0

@end

@interface MCDetailTotalModel : NSObject

@property(nonatomic,strong) NSString * UserName;// (string, optional): 用户名 ,
@property(nonatomic,strong) NSString * Name;// (string, optional): 红包名称 ,
@property(nonatomic,strong) NSString * Amount;// (number, optional): 总金额 ,
@property(nonatomic,strong) NSString * Qty ;//(integer, optional): 总数量 ,
@property(nonatomic,strong) NSString * PersonConsumption ;//(number, optional): 消费标准 ,
@property(nonatomic,strong) NSString * PersonRechargeMoney ;//(number, optional): 充值标准 ,
@property(nonatomic,strong) NSString * ReceivedNum;// (integer, optional): 抢红包的总数 ,
@property(nonatomic,strong) NSNumber*  GrabAmount;// (number, optional): 抢到的金额 仅限收到用户用 ,
@property(nonatomic,strong) NSString * HeadPortrait ;//(string, optional): 头像编号



@end


@interface MCHongBaoDetailModel : NSObject

@property(nonatomic,strong) void(^callBackSuccessBlock)(id manager);
@property(nonatomic,strong) void(^callBackFailedBlock)(id manager,NSString *errorCode);
- (void)refreashDataAndShow;

- (instancetype)initWithDic:(NSDictionary *)dic;

@property (nonatomic,strong)NSArray <MCDetailListModel *> * DetailList;
@property (nonatomic,strong)MCDetailTotalModel * DetailTotal;

@end



//{
//    "DetailList": [
//                   {
//                       "UserName": "string",
//                       "GrabMoney": 0,
//                       "GrabTime": "2018-03-28T06:12:16.503Z",
//                       "Best": 0
//                   }
//                   ],
//    "DetailTotal": {
//        "UserName": "string",
//        "Name": "string",
//        "Amount": 0,
//        "Qty": 0,
//        "PersonConsumption": 0,
//        "PersonRechargeMoney": 0,
//        "ReceivedNum": 0,
//        "GrabAmount": 0
//    }
//}







